package net.jlibrary.invoice.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import net.jlibrary.common.core.service.BaseManager;
import net.jlibrary.common.project.domain.Group;
import net.jlibrary.invoice.domain.InvoiceType;

@Service
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public class ElectronicInvoiceManager extends BaseManager implements IElectronicInvoiceManager {

	@Override
	public List<Group> groups() {
		List<Group> groups = dao.baseLists(new Group(), false);
		return groups;
	}

	@Override
	public List<InvoiceType> invoiceType() {
		List<InvoiceType> invoiceTypes = dao.baseLists(new InvoiceType(), false);
		return invoiceTypes;
	}

}
